class Solution:
    def sumZero(self, n: int) -> List[int]:
        res = [None] * n
        start = -(n // 2)
        if n % 2 == 1:
            for i in range(n):
                res[i] = start + i
        else:
            res[0] = start
            for i in range(1, n):
                res[i] = res[i - 1] + 1
                if res[i] == 0:
                    res[i] = res[i] + 1
        return res 


        